import Index from "@/components/pages/index";
import Login from "@/components/pages/login";
import Error404 from "@/components/pages/error404";


import AddUser from "@/components/pages/add-user";


import ConnavIndex from "@/components/pages/con-nav/index";
import ConnavAdd from "@/components/pages/con-nav/add";

import NavIndex from "@/components/pages/nav/index";
import NavAdd from "@/components/pages/nav/add";

import BannerIndex from "@/components/pages/banner/index";
import BannerAdd from "@/components/pages/banner/add";

import ModuleIndex from "@/components/pages/module/index";
import ModuleAdd from "@/components/pages/module/add";

import DetailsIndex from "@/components/pages/details/index";
import DetailsAdd from "@/components/pages/details/add";

import ConfigSetIndex from "@/components/pages/config-set/index";
import ConfigSetAdd from "@/components/pages/config-set/add";

export default [
  {path: '/',redirect:'index'},
  { name: "index", path: "/index", component: Index, meta: { index: "1"} },
  { name: "login", path: "/login", component: Login },
  { path: "", component: Index, meta: { index: "1"} },
  { name: "error404", path: "*", component: Error404 },

  { name: "BannerIndex", path: "/banner/index", component: BannerIndex, meta: { index: "2", user: "super" } },
  { name: "BannerAdd", path: "/banner/add", component: BannerAdd, meta: { index: "2-1", user: "super" } },

  { name: "ConnavIndex", path: "/con-nav/index", component: ConnavIndex, meta: { index: "3", user: "super" } },
  { name: "ConnavAdd", path: "/con-nav/add", component: ConnavAdd, meta: { index: "3-1", user: "super" } },

  { name: "NavIndex", path: "/nav/index", component: NavIndex, meta: { index: "4", user: "super" } },
  { name: "NavAdd", path: "/nav/add", component: NavAdd, meta: { index: "4-1", user: "super" } },

  { name: "ModuleIndex", path: "/module/index", component: ModuleIndex, meta: { index: "5", user: "super" } },
  { name: "ModuleAdd", path: "/module/add", component: ModuleAdd, meta: { index: "5-1", user: "super" } },

  { name: "DetailsIndex", path: "/details/index", component: DetailsIndex, meta: { index: "6", user: "super" } },
  { name: "DetailsAdd", path: "/details/add", component: DetailsAdd, meta: { index: "6-1", user: "super" } },

  { name: "ConfigSetIndex", path: "/config-set/index", component: ConfigSetIndex, meta: { index: "7", user: "super" } },
  { name: "ConfigSetAdd", path: "/config-set/add", component: ConfigSetAdd, meta: { index: "7-1", user: "super" } },

  { name: "addUser", path: "/add-user", component: AddUser, meta: { user: "super" } },

];
